<?php

class SWPF
{
	public static function get_the_style_uri($name)
	{
		return SWPF_URI.'/css/'.$name.'.css';
	}
	
	public static function the_style_uri($name)
	{
		echo self::get_the_style_uri($name);
	}
	
	public static function get_the_feed_burner_uri($name)
	{
		return 'http://feedburner.google.com/fb/a/mailverify?uri='.$name.'&amp;loc=en_US';
	}
	
	public static function the_feed_burner_uri($name)
	{
		echo self::get_the_feed_burner_uri($name);
	}
	
	public static function get_the_theme_image_uri($name)
	{
		return SWPF_IMAGE_URI.'/'.$name;
	}
	
	public static function the_theme_image_uri($name)
	{
		echo self::get_the_theme_image_uri($name);
	}
	
	
	public static function get_the_google_plus_uri($id)
	{
		return 'https://plus.google.com/'.$id;
	}
	
	public static function the_google_plus_uri($id)
	{
		echo self::get_the_google_plus_uri($id);
	}
	
	public static function get_the_facebook_uri($name)
	{
		return 'http://facebook.com/'.$name;
	}
	
	public static function the_facebook_uri($name)
	{
		echo self::get_the_facebook_uri($name);
	}
	
	public static function the_google_webmaster_verify_meta($code)
	{
		echo '<meta name="google-site-verification" content="'.$code.'" />';
	}
	
	public static function the_google_analytics($id)
	{
		?>
		<script type="text/javascript">
		  var _gaq = _gaq || [];
		  _gaq.push(['_setAccount', '<?php echo $id; ?>']);
		  _gaq.push(['_trackPageview']);

		  (function() {
			var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
			ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
			var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
		  })();
		</script>
		<?php
	}
}
?>